﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 

namespace nadModel
{
    public abstract class AbstractEntityPKey
    {
        protected int _ENTITY_FIELD_COUNT;
        protected string _ENTITY_FIELDS = "";
        protected string _IDENTITY_FIELD = "";

        public string[] GetFieldList()
        {
            string[] strArray = this._ENTITY_FIELDS.Split(new char[] { ',' });
            int index = 0;
            while (index < strArray.Length)
            {
                strArray[index] = strArray[index].Trim();
                index++;
            }

            return strArray;
        }
        public int ENTITY_FIELD_COUNT
        {
            get
            {
                return this._ENTITY_FIELD_COUNT;
            }
        }

        public string ENTITY_FIELDS
        {
            get
            {
                return this._ENTITY_FIELDS;
            }
        }

        public string IDENTITY_FIELD
        {
            get
            {
                return this._IDENTITY_FIELD;
            }
        }



    }
}
